From: Jasper St. Pierre Date: Mon, 11 Mar 2013 21:24:52 +0000 (-0400) Subject: grabHelper: Use a round trip for focusing the default window X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~4495 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=8301acd4d65b6d97c32b0adab7af46180ea21d53;p=gnome-shell.git grabHelper: Use a round trip for focusing the default window We may release the focus grab at any time, so it's not guaranteed we'll be in event processing. In particular, hovering over and out of a notification will cause this to happen, as the notification is hidden on a timeout. https://bugzilla.gnome.org/show_bug.cgi?id=695659 --- diff --git a/js/ui/grabHelper.js b/js/ui/grabHelper.js index 1543c14cd..2547da679 100644 --- a/js/ui/grabHelper.js +++ b/js/ui/grabHelper.js @@ -248,7 +248,7 @@ const GrabHelper = new Lang.Class({ global.set_stage_input_mode(Shell.StageInputMode.FOCUSED); } - global.screen.focus_default_window(global.get_current_time()); + global.screen.focus_default_window(global.display.get_current_time_roundtrip()); }, // ignoreRelease: